package org.sixtynine.stock.dao;

/**
 * @author Thilan
 *
 */

import java.util.Date;
import java.util.List;

import org.sixtynine.stock.dto.GridPramDTO;
import org.sixtynine.stock.dto.Page;
import org.sixtynine.stock.entity.Dividend;
import org.springframework.transaction.annotation.Transactional;

@Transactional(readOnly = true)
public interface DividendDao extends AbstractDao<Dividend, Integer> {

	void saveDividend(Dividend dividend);

	List<Dividend> findDividend(String companyName);

	List<Dividend> searchDividend(int companyId);

	List<Dividend> searchDividend(int companyId, Date fromDate, Date toDate);

	public Page<Dividend> searchDividend(int companyId, Date fromDate,
			Date toDate, GridPramDTO gridPramDTO);
}
